package com.ganzi.manager.controller;

import com.ganzi.manager.service.RoleService;
import com.ganzi.manager.service.UserService;
import com.ganzi.manager.shiro.redis.OtherCache.UserCache;
import com.ganzi.manager.util.ReturnMap;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
 * 管理controller
 * */
@RestController
@RequestMapping("/manager")
public class ManagerController {
    private static Logger logger = LoggerFactory.getLogger(ManagerController.class);
    @Autowired
    UserService userService;
    @Autowired
    RoleService roleService;
    @Autowired
    UserCache cache;

    @RequiresPermissions("xxx")
    @RequestMapping(value ="/test",method = {RequestMethod.POST})
    public Object readyLogin(@RequestBody String json){
            return ReturnMap.getReturnMap(200,"请求成功");
    }
}
